package com.css.fxfzaqbz.common.utils.cluster;

public class Marker {

    public String id;
    public boolean isInCluster;
    public Point position;
    public String name;

    public Marker () {
    }

    public Marker (Point position) {
        this.position = position;
        this.isInCluster = false;
    }

    @Override
    public boolean equals(Object obj) {
        if(!(obj instanceof Marker)) {
            return false;
        }
        Marker marker = (Marker) obj;
        // 地址相等
        if (this == marker) {
            return true;
        }

        if (marker.id.equals(this.id) || marker.position.equals(this.position)) {
            return true;
        } else {
            return false;
        }
    }

}
